home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / sandwichcooking.swf / scripts / DefineButton2_591 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2007-09-27  |  887b  |  36 lines

  1. on(release){
  2.    this.stopDrag();
  3.    this.gotoAndStop(1);
  4.    if(this.hitTest(_root.chr.idrop))
  5.    {
  6.       _root.chr.sonion._visible = true;
  7.       this._x = targetX;
  8.       this._y = targetY;
  9.       this._visible = false;
  10.       _root.chop.sonionx.gotoAndPlay(58);
  11.       _root.sonionx._visible = false;
  12.    }
  13.    else if(this.hitTest(_root.fry.fdrop))
  14.    {
  15.       _root.fry.fonionx._visible = true;
  16.       this._x = targetX;
  17.       this._y = targetY;
  18.       this._visible = false;
  19.       _root.chop.sonionx.gotoAndPlay(58);
  20.       _root.sonionx._visible = false;
  21.       if(_root.chr._currentframe == 1)
  22.       {
  23.          _root.txtX._visible = true;
  24.          _root.txtX.play();
  25.          _root.chr.gotoAndPlay(11);
  26.          this._x = targetX;
  27.          this._y = targetY;
  28.       }
  29.       else
  30.       {
  31.          this._x = targetX;
  32.          this._y = targetY;
  33.       }
  34.    }
  35. }
  36.